﻿using AutoMapper;
using JuCheap.Core.Interfaces;
using JuCheap.Core.Services.AppServices;
using System;
using System.Collections.Generic;
using System.Text;

namespace JuCheap.Core.Test
{
    public class TestAutoMapperModelEntityMapper : IModelEntityMapper
    {
        public IMapperAccesstor Mapper { get; set; }

        public TDestination Map<TSource, TDestination>(TSource source)
        {
            return Mapper.Mapper.Map<TSource, TDestination>(source);
        }

        public TDestination Map<TSource, TDestination>(TSource source, TDestination destination)
        {
            return Mapper.Mapper.Map(source, destination);
        }
    }
}
